import request from '@/utils/request'
/**
 * 新增片区
 * @param {} data 
 * @returns 
 */
export const addAreaApi =(data) => {
    return request({
        url: '/party/area',
        method: 'post',
        data
    })
}
/**
 * 片区列表
 */
export const areaListApi =(data) => {
    return request({
        url: '/party/area/list',
        method: 'post',
        data
    })
}
/**
 * 修改片区
 */
export const putAreaApi =(data) => {
    return request({
        url: '/party/area',
        method: 'put',
        data
    })
}
/**
 * 删除片区
 */
export const delAreaApi =(id) => {
    return request({
        url: '/party/area/batchDelete',
        method: 'post',
        data:[id]
    })
}

